package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author panbo
 * @since 2024/8/2
 */
@Getter
@RequiredArgsConstructor
@Dict("任务执行方式")
public enum JobInitStrategyEnum implements DictEnum<String> {

    DO_NOTHING("DO_NOTHING", "周期执行"),
    FIRE_AND_PROCEED("FIRE_AND_PROCEED", "立即执行一次，并周期执行"),
    IGNORE_MISFIRES("IGNORE_MISFIRES", "超期立即执行，并周期执行")
    ;

    @JsonValue
    @EnumValue
    private final String value;
    private final String label;
}
